package com.haixiaoke.saas.repository.pojo;

import com.haixiaoke.saas.repository.core.BaseEntity;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * 公寓收费项目用量对象 biz_apartment_charge_item_usage
 *
 * @author qixi
 * @date 2023-06-16
 */
@Data
public class ApartmentChargeItemUsage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    private Long usageId;

    /** 账单id */
    private String billId;

    /** 账单规则和收费项目关联id */
    private Long refId;

    /** 收费项目名称 */
    private String itemName;

    /** 单价 */
    @Min(value = 0,message = "单价不能为负数")
    private Double unitPrice;

    /** 数量 */
    @Min(value = 0,message = "数量不能为负数")
    private Double number;

    /** 总价 */
    private Double totalPrice;

    /**
     * 计量单位
     */
    private String itemUnit;
}
